<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:fragment="user_nav">
    <!--    从session域中拿用户名    -->
    <span>欢迎<span class="um_span"
                  th:text="${session.loginUser.username}"></span>光临尚硅谷书城</span>
    <a href="order?method=toOrderPage">我的订单</a>
    <a href="user?method=doLogout">注销</a>&nbsp;&nbsp;
    <a href="index.html">返回</a>
</div>
</body>
</html>